<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/jquery.fullPage.css">
    <style>
        .section {
            text-align: center;
            font: 30px "Microsoft Yahei";
            color: #fff;
        }

        #fp-nav ul li a.active span {
            background-color: pink;
        }

        #fp-nav ul li a span {
            background-color: green;
        }

        .section1 {
            background: url(images/1.jpg) 50%;
        }

        .section2 {
            background: url(images/2.jpg) 50%;
        }

        .section3 {
            background: url(images/3.jpg) 50%;
        }

        .section4 {
            background: url(images/4.jpg) 50%;
        }
    </style>
    <script src="js/jquery-1.8.3.min.js"></script>
    <script src="js/jquery.fullPage.min.js"></script>
    <script>
        $(function () {
            $('#dowebok').fullpage({
                sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', '#f90'],
                navigation: true,
                continuousVertical: true
            });
            $(window).resize(function () {
                autoScrolling();
            });

            function autoScrolling() {
                var $ww = $(window).width();
                if ($ww < 1024) {
                    $.fn.fullpage.setAutoScrolling(false);
                } else {
                    $.fn.fullpage.setAutoScrolling(true);
                }
            }

            autoScrolling();
            setInterval(function () {
                $.fn.fullpage.moveSectionDown();
            }, 3000);
        });
    </script>
</head>

<body>

    <div id="dowebok">
        <div class="section section1">
            <h3>第一屏</h3>
        </div>
        <div class=" section section2">
            <h3>第二屏</h3>
        </div>
        <div class="section  section3 active">
            <h3>第三屏</h3>
        </div>
        <div class="section section4">
            <h3>第四屏</h3>
        </div>
    </div>
</body>

</html>